<%-- 
    Document   : index4
    Created on : 2015-9-24, 11:38:21
    Author     : Fire
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script src="plugins/react/react.js" type="text/javascript"></script>
        <script src="plugins/react/browser.min.js" type="text/javascript"></script>
    </head>
    <body>
        <div id="example"></div>
        <script type="text/babel">
         var  HelloMessage=React.createClass({
               render:function(){
                   return <h1>hello {this.props.name}</h1>;
            }
         });       
        React.render(
            <HelloMessage name='jena'/>,
            document.getElementById('example')    
            );
        </script>
    </body>
</html>
